Re: [NTG-context] Hyphenation in multi-language projects

2022-09-14 Thread Steffen Wolfrum via ntg-context
det: Mittwoch, 14. September 2022 08:51 >> An: ntg-context@ntg.nl >> Cc: Max Chernoff ; cont...@st.estfiles.de >> Betreff: Re: [NTG-context] Hyphenation in multi-language projects >> >> Hi Steffen, >> >>> … \replaceword should be the correct way for

Re: [NTG-context] Hyphenation in multi-language projects

2022-09-14 Thread Denis Maier via ntg-context
uage projects > > Hi Steffen, > > > … \replaceword should be the correct way for proper hyphenation?? > > Well I'm not sure if it's "correct", but it seems to work. Based on my > testing, > having three subsequent sets of groups ({A}{B}{C}) is converted to a &g

Re: [NTG-context] Hyphenation in multi-language projects

2022-09-14 Thread Max Chernoff via ntg-context
Hi Steffen, > … \replaceword should be the correct way for proper hyphenation?? Well I'm not sure if it's "correct", but it seems to work. Based on my testing, having three subsequent sets of groups ({A}{B}{C}) is converted to a discretionary. The discretionary hyphen "

Re: [NTG-context] Hyphenation in multi-language projects

2022-09-14 Thread Steffen Wolfrum via ntg-context
… \replaceword should be the correct way for proper hyphenation?? st. > Am 14.09.2022 um 08:35 schrieb Max Chernoff : > > > Hi Steffen, > >> The idea is to set the hyphenation for certain words regardless of the >> language that is used in the surrounding paragra

Re: [NTG-context] Hyphenation in multi-language projects

2022-09-14 Thread Max Chernoff via ntg-context
each language-switch)? You can use \replaceword: \starttext \setuppapersize[A6][A6] \mainlanguage[en] \replaceword[hyphenations][steffen][steff{-}{}{}en] \setreplacements[hyphenations] english text english text english teste: steffen steffen \start\languag

[NTG-context] String substitution using regular expressions and backreferences

2022-08-01 Thread Thangalin via ntg-context
Hi list, I'm looking to perform text replacements. \definereplacement[SubstPostmeridian][ match={[Pp].[Mm].]}, replace={\cap{pm}} ] The \replaceword command doesn't handle periods well. The translate module doesn't seem flexible enough to cover edge cases. Consider the following example

Re: [NTG-context] ligature exceptions

2021-07-28 Thread Hans Hagen via ntg-context
mechanism (\replaceword[eg][Auflage][Au{fl}age]) now obsolete? I tried using it, but unwanted ligatures still occurred. If it is indeed deprecated, I'll add a note to the wiki (this would mean that the current texlive version does not have the new mechanism and the latest lmtx doesn't use the old

[NTG-context] ligature exceptions

2021-07-28 Thread Thomas A. Schmitz via ntg-context
Hi all, just two quick questions: a couple of weeks ago, there was a long discussion on ligature exceptions in, e.g., German. Hans provided an elegant new mechanism (\startlanguageoptions). So my two questions: 1. Is the old mechanism (\replaceword[eg][Auflage][Au{fl}age]) now obsolete? I

Re: [NTG-context] Summing up ligature prevention tests

2021-03-25 Thread Hans Hagen
On 3/24/2021 11:43 PM, denis.ma...@ub.unibe.ch wrote: So, what's the general recommendation? Which approach is the best in your opinion? (In case it's the \replaceword approach: do you think you'll have time to look into this?) I've seen in an older thread that the best way to deal

Re: [NTG-context] Summing up ligature prevention tests

2021-03-25 Thread denis.maier
b.unibe.ch wrote: > > So, what's the general recommendation? Which approach is the best in > > your opinion? (In case it's the \replaceword approach: do you think > > you'll have time to look into this?) > > > > I've seen in an older thread that the best way to deal with this

Re: [NTG-context] Summing up ligature prevention tests

2021-03-25 Thread Hans Hagen
On 3/24/2021 11:43 PM, denis.ma...@ub.unibe.ch wrote: So, what's the general recommendation? Which approach is the best in your opinion? (In case it's the \replaceword approach: do you think you'll have time to look into this?) I've seen in an older thread that the best way to deal

Re: [NTG-context] Summing up ligature prevention tests

2021-03-24 Thread denis.maier
So, what's the general recommendation? Which approach is the best in your opinion? (In case it's the \replaceword approach: do you think you'll have time to look into this?) I've seen in an older thread that the best way to deal with this would be in the hyphenator. What do you think about

[NTG-context] Summing up ligature prevention tests

2021-03-24 Thread denis.maier
Hi, Trying to sum up what we currently have regarding ligature prevention, it looks like we have three mechanisms available: 1. \replaceword[set][input][output] Ex.: \replaceword[ligs][Auflage][Au{fl}age] Replaces a word input with the corresponding output. Doesn't work at the moment with LMTX

[NTG-context] Replacement mechanism bug in LMTX?

2021-03-24 Thread denis.maier
Ah, I've now realized that the \blockligatures needs to be activated as a font feature... So forget about this point. But, it still looks like ligature prevention with \replaceword is not working with lmtx, but it works with --luatex

[NTG-context] Replacement mechanism?

2021-03-22 Thread denis.maier
Hi, last October I've reported a strange bug with \replaceword I know there's the new mechanism for dealing with ligatures, and I still intend to convert the word list to the new format, but I'm still wondering whether that has been fixed. Now, I've been testing with the minimal example below

Re: [NTG-context] How do you deal with inappropriate ligatures?

2020-10-14 Thread Hans Hagen
on a wordlist originating from selnolig), but then ran into a curious bug (?) with disappearing characters (see my posts from a couple of days ago). I'm now converting this list to the \blockligatures mechanism (instead of using \replaceword), which also has better kerning support due to Hans. When

Re: [NTG-context] How do you deal with inappropriate ligatures?

2020-10-13 Thread Hans Hagen
on a wordlist originating from selnolig), but then ran into a curious bug (?) with disappearing characters (see my posts from a couple of days ago). I'm now converting this list to the \blockligatures mechanism (instead of using \replaceword), which also has better kerning support due to Hans. When

Re: [NTG-context] How do you deal with inappropriate ligatures?

2020-10-12 Thread Denis Maier
), but then ran into a curious bug (?) with disappearing characters (see my posts from a couple of days ago). I'm now converting this list to the \blockligatures mechanism (instead of using \replaceword), which also has better kerning support due to Hans. When done, I'll of course share this on the Wiki

Re: [NTG-context] How do you deal with inappropriate ligatures?

2020-10-12 Thread Hans Hagen
(?) with disappearing characters (see my posts from a couple of days ago). I'm now converting this list to the \blockligatures mechanism (instead of using \replaceword), which also has better kerning support due to Hans. When done, I'll of course share this on the Wiki if there's any need for this. Now I'm

[NTG-context] How do you deal with inappropriate ligatures?

2020-10-12 Thread Denis Maier
of days ago). I'm now converting this list to the \blockligatures mechanism (instead of using \replaceword), which also has better kerning support due to Hans. When done, I'll of course share this on the Wiki if there's any need for this. Now I'm wondering how others deal with inappropriate

Re: [NTG-context] Disappearing characters with nolig-german-wordlist

2020-10-09 Thread Denis Maier
Arg, it's getting uglier... I've been playing around with the replacement patterns. ``` \replaceword[replace][auff][au{ff}] \replaceword[replace][Aufl][Au{fl}] \replaceword[replace][aufl][au{fl}] \setreplacements[replace] \starttext auffasste auffasse Auflage aufliegen auffliegen

Re: [NTG-context] Disappearing characters with nolig-german-wordlist

2020-10-09 Thread Hans Hagen
On 10/8/2020 3:15 PM, Denis Maier wrote: Ok, I've commented the whole nolig-german-wordlist out piece by piece, and it looks like it comes down to this: ``` \replaceword[eka][auffasse][au{ff}asse] \replaceword[eka][auffasst][au{ff}asst] \setreplacements[eka] \starttext auffasste auffasse

Re: [NTG-context] Disappearing characters with nolig-german-wordlist

2020-10-09 Thread Denis Maier
Next try, the compact syntax gives the same weird result: ``` \replaceword[replace][au{ff}asse au{ff}asst] \setreplacements[replace] \starttext auffasste auffasse \stoptext ``` I would really like to have correct ligatures. What can I do to help finding the reason

Re: [NTG-context] Disappearing characters with nolig-german-wordlist

2020-10-09 Thread Henning Hraban Ramm
on't have that file It was from my projects (eka = Edition Kritische Ausgabe, a series by Verlag Dreiviertelhaus). (I didn’t remember I uploaded it to the wiki, tried to send it here, but it was too big.) >> ``` >> \replaceword[eka][auffasse][au{ff}asse] >> \re

[NTG-context] Disappearing characters with nolig-german-wordlist

2020-10-08 Thread Denis Maier
n't really understand what is happening here. Why is the t disappearing. ``` \replaceword[eka][auffasse][au{ff}asse] \replaceword[eka][auffasste][au{ff}asste] \setreplacements[eka] \starttext auffasste auffasse \stoptext ``` This example gives correct resul

Re: [NTG-context] Disappearing characters with nolig-german-wordlist

2020-10-08 Thread Denis Maier
Ok, I've commented the whole nolig-german-wordlist out piece by piece, and it looks like it comes down to this: ``` \replaceword[eka][auffasse][au{ff}asse] \replaceword[eka][auffasst][au{ff}asst] \setreplacements[eka] \starttext auffasste auffasse \stoptext ``` Uncommenting one

Re: [NTG-context] Disappearing characters with nolig-german-wordlist

2020-10-08 Thread Denis Maier
y I didn't attached it to the mail (and, it's too big to post here). ``` \replaceword[eka][auffasse][au{ff}asse] \replaceword[eka][auffasste][au{ff}asste] \setreplacements[eka] \starttext auffasste auffasse \stoptext ``` This example gives correct results. so we're okay Yes, but it looks li

Re: [NTG-context] Disappearing characters with nolig-german-wordlist

2020-10-08 Thread Hans Hagen
fasse" (see attachment.) I don't really understand what is happening here. Why is the t disappearing. who knows ... i don't have that file ``` \replaceword[eka][auffasse][au{ff}asse] \replaceword[eka][auffasste][au{ff}asste] \setreplacements[eka] \starttext auffasste auffasse

Re: [NTG-context] removing word in filtered XML

2020-08-21 Thread Pablo Rodriguez
On 8/21/20 2:59 PM, Hans Hagen wrote: > On 8/20/2020 4:20 PM, Pablo Rodriguez wrote: > >>\replaceword[whatever][this or][no] >>\replaceword[whatever][that][] > this feature creep is in the next upload Hans, many thanks for the new feature. Pablo -

Re: [NTG-context] removing word in filtered XML

2020-08-21 Thread Hans Hagen
On 8/20/2020 4:20 PM, Pablo Rodriguez wrote: \replaceword[whatever][this or][no] \replaceword[whatever][that][] this feature creep is in the next upload Hans - Hans Hagen | PRAGMA

Re: [NTG-context] removing word in filtered XML

2020-08-20 Thread Pablo Rodriguez
; " word." " word?" (and so on). I would >> like to avoid having to code all combinations (of course, if this were >> already available). > > old stuff present for a long time ... probaly documented somewhere ... > if not than you have to wikify it ... Man

Re: [NTG-context] removing word in filtered XML

2020-08-20 Thread Hans Hagen
d?" (and so on). I would like to avoid having to code all combinations (of course, if this were already available). old stuff present for a long time ... probaly documented somewhere ... if not than you have to wikify it ... \starttext \replaceword[whatever][this][that] \replaceword[whatever][t

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Pablo Rodriguez
On 04/15/2018 06:39 PM, Hans Hagen wrote: > On 4/15/2018 6:14 PM, Pablo Rodriguez wrote: >> [...] >> Many thanks for the fix, Hans. > it's not a fix .. it's an extension to the font extension mechanism Hans it was my fault. Of course it is a new implementation. (I was thinking about the solution

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Hans Hagen
On 4/15/2018 7:07 PM, Floris van Manen wrote: On 15 Apr 2018, at 18:42, Hans Hagen wrote: In this case "The Time Capsule" from Endre eNerd (blu ray on my top floor work space with surround 5.1). much like TeX, drummers do know about timing ;-) Indeed I love to watch

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread luigi scarso
On Sun, Apr 15, 2018 at 6:02 PM, Hans Hagen wrote: > ... yet another obscure feature > It's a proven theorem that, by adding a suitable number of obscure features, you can transform everything into black magic. -- luigi

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Floris van Manen
> On 15 Apr 2018, at 18:42, Hans Hagen wrote: > > In this case "The Time Capsule" from Endre eNerd (blu ray on my top floor > work space with surround 5.1). much like TeX, drummers do know about timing ;-) .F signature.asc Description: Message signed with OpenPGP using

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Hans Hagen
On 4/15/2018 6:22 PM, Floris van Manen wrote: On 15 Apr 2018, at 18:02, Hans Hagen wrote: (some upbeat music in the background so i could convince myself) what music ? In this case "The Time Capsule" from Endre eNerd (blu ray on my top floor work space with surround

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Hans Hagen
On 4/15/2018 6:14 PM, Pablo Rodriguez wrote: On 04/15/2018 06:02 PM, Hans Hagen wrote: On 4/15/2018 1:30 PM, Pablo Rodriguez wrote: [...] Is there any way to get spaces in the string to be replaced? not with a lot of effort on my end which i'm not willing to invest in something that is just a

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Floris van Manen
> On 15 Apr 2018, at 18:02, Hans Hagen wrote: > > (some upbeat music in the background so i could convince myself) what music ? .F signature.asc Description: Message signed with OpenPGP using GPGMail

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Pablo Rodriguez
On 04/15/2018 06:02 PM, Hans Hagen wrote: > On 4/15/2018 1:30 PM, Pablo Rodriguez wrote: >> [...] >> Is there any way to get spaces in the string to be replaced? > not with a lot of effort on my end which i'm not willing to invest in > something that is just a hack for bad input ... tex has no

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Hans Hagen
On 4/15/2018 1:30 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \replaceword[some][via ][Vía] \replaceword[some][calle ][c/ ] \replaceword[some][ calle][ Calle] \starttext \startTEXpage[offset=2em] This is what I get: \setreplacements

[NTG-context] \replaceword with spaces

2018-04-15 Thread Pablo Rodriguez
Dear list, I have the following sample: \replaceword[some][via ][Vía] \replaceword[some][calle ][c/ ] \replaceword[some][ calle][ Calle] \starttext \startTEXpage[offset=2em] This is what I get: \setreplacements[some]% calle via del viaducto de la calle

Re: [NTG-context] ligature exceptions

2017-10-07 Thread Henning Hraban Ramm
] [mode=node,kern=yes, liga=yes,tlig=yes, ccmp=yes,language=dflt, protrusion=quality, expansion=quality] \replaceword[eka][Auflage][Au{fl}age] \replaceword[eka][Kampffront][Kamp{ff}ront] \starttext falsch: Auflage Kampffront richtig: Au\noligature{fl}age Kamp\noligature{ff}ront \setreplacements[eka

[NTG-context] Fwd: ligature exceptions

2017-10-06 Thread Henning Hraban Ramm
Am 2017-09-28 um 01:16 schrieb Hans Hagen <pra...@wxs.nl>: > On 9/27/2017 11:08 PM, Thomas A. Schmitz wrote: >> On 09/27/2017 10:25 PM, Henning Hraban Ramm wrote: >>> Thank you for the suggestion. >>> I tried >>> >>> \replacewor

Re: [NTG-context] ligature exceptions

2017-09-29 Thread Pablo Rodriguez
u indeed use the latest beta? anyway, the \replaceword mechanism is > a bit more flexible and efficient Hans, after updating to latest beta (from 2017.09.25 19:19 to 2017.09.28 10:07 [I didn’t realize that there was a newer beta yesterday]), it works. Just in case it may be relevant, \bl

Re: [NTG-context] ligature exceptions

2017-09-28 Thread Hans Hagen
is written _with_ a ligature? Herbert, I overlooked that \blockligatures[u:fl:age, u:fl:eg] only works if there is also a \blockligatures[fl]. Hans, is this a bug or is it intended? do you indeed use the latest beta? anyway, the \replaceword mechanism is a bit more flexible and effici

Re: [NTG-context] ligature exceptions

2017-09-28 Thread Henning Hraban Ramm
Am 2017-09-27 um 23:02 schrieb Herbert Voss <herbert.v...@fu-berlin.de>: >> Thank you for the suggestion. >> I tried >> \replaceword[eka][Auflage][Au{fl}age] >> \setreplacements[eka] >> and even converted the german wordlist from the selnolig package,

Re: [NTG-context] ligature exceptions

2017-09-27 Thread Hans Hagen
On 9/27/2017 11:08 PM, Thomas A. Schmitz wrote: On 09/27/2017 10:25 PM, Henning Hraban Ramm wrote: Thank you for the suggestion. I tried \replaceword[eka][Auflage][Au{fl}age] \setreplacements[eka] and even converted the german wordlist from the selnolig package, but it doesn’t help. Works

Re: [NTG-context] ligature exceptions

2017-09-27 Thread Thomas A. Schmitz
On 09/27/2017 10:25 PM, Henning Hraban Ramm wrote: Thank you for the suggestion. I tried \replaceword[eka][Auflage][Au{fl}age] \setreplacements[eka] and even converted the german wordlist from the selnolig package, but it doesn’t help. Works here. You'll have to make a real example

Re: [NTG-context] ligature exceptions

2017-09-27 Thread Herbert Voss
s, too. This exists, see here: https://www.mail-archive.com/ntg-context@ntg.nl/msg79381.html Thank you for the suggestion. I tried \replaceword[eka][Auflage][Au{fl}age] \setreplacements[eka] and even converted the german wordlist from the selnolig package, but it doesn’t help. If I try \repla

Re: [NTG-context] ligature exceptions

2017-09-27 Thread Henning Hraban Ramm
e here: > https://www.mail-archive.com/ntg-context@ntg.nl/msg79381.html Thank you for the suggestion. I tried \replaceword[eka][Auflage][Au{fl}age] \setreplacements[eka] and even converted the german wordlist from the selnolig package, but it doesn’t help. If I try \replaceword[eka][Auflag

Re: [NTG-context] \replaceword in footnotes

2016-04-06 Thread Hans Hagen
On 4/6/2016 9:04 AM, Thomas A. Schmitz wrote: On 04/06/2016 08:57 AM, Wolfgang Schuster wrote: The feature is disabled in footnotes and you have to reenable it: \startsetups[footnote] \setreplacements [german] \stopsetups \setupnote[footnote][setups=footnote] Thank you, Wolfgang, this

Re: [NTG-context] \replaceword in footnotes

2016-04-06 Thread Thomas A. Schmitz
On 04/06/2016 08:57 AM, Wolfgang Schuster wrote: The feature is disabled in footnotes and you have to reenable it: \startsetups[footnote] \setreplacements [german] \stopsetups \setupnote[footnote][setups=footnote] Thank you, Wolfgang, this works indeed! Thomas

Re: [NTG-context] \replaceword in footnotes

2016-04-06 Thread Wolfgang Schuster
Thomas \setreplacements [german] \replaceword [german] [Auflage] [Au{fl}age] \mainlanguage [de] \setupbodyfont [termes, 12pt] \starttext flüssig Auflage\footnote{flüssig Auflage} \stoptext The feature is disabled in footnotes and you have to reenable it: \startsetups[footnote] \setreplacements [

[NTG-context] \replaceword in footnotes

2016-04-06 Thread Thomas A. Schmitz
Hi all, I use replacements to break unwanted ligatures in German text. This works in the text body, but not in footnotes. How can this be achieved in footnotes as well? Example attached! Thanks Thomas \setreplacements [german] \replaceword [german] [Auflage] [Au{fl}age] \mainlanguage [de

Re: [NTG-context] Ligatures in EB Garamond

2016-01-19 Thread Hans Hagen
, but as I only have to use it once...) I have no clue what a package is supposed to do but any solution has to come up with a list if words. \replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen] The {-}{}{\zwnj} is in fact a discretionary spec because you probably would like to permit

Re: [NTG-context] Ligatures in EB Garamond

2016-01-19 Thread Hans Hagen
using patterns they don't need a very huge word list, I think. If patterns were the solution then making better pattern files would be the solution ... anyway, i just see a list of what are basically exceptions. So just for the fun of it i'll add {} as shortcut for \zwnj \replacewor

[NTG-context] Ligatures in EB Garamond (was: \replaceword and \setreplacements with xml files)

2016-01-18 Thread Jan U. Hasecke
;> I confirmed this behaviour in my real setup. > > don't assume that ligatures are always real ligatures ... in that font > it's just kerning .. this kind of works okay: > > \replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen] I am confused as the specimen of EB Garamond

Re: [NTG-context] \replaceword and \setreplacements with xml files

2016-01-18 Thread Hans Hagen
ligatures ... in that font it's just kerning .. this kind of works okay: \replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen] Thanks a lot. This was new to me. there are many hidden tricks ... to be revealed in due time (so that we can suggest that it was just implemented) Hans

Re: [NTG-context] Ligatures in EB Garamond

2016-01-18 Thread Hans Hagen
res are always real ligatures ... in that font it's just kerning .. this kind of works okay: \replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen] I am confused as the specimen of EB Garamond mentions (real) ligatures. They are listed as glyphs. https://github.com/georgd/EB-Garamond/blob/master/speci

Re: [NTG-context] Ligatures in EB Garamond

2016-01-18 Thread Jan U. Hasecke
sue. >>>> >>>> When I don't specify a font, it works. --> example.tex >>>> >>>> When I choose EB Garamond, it does not work. -- example-Garamond.tex >>>> >>>> I confirmed this behaviour in my real setup. >>> >>> d

Re: [NTG-context] Ligatures in EB Garamond

2016-01-18 Thread Hans Hagen
ple-Garamond.tex I confirmed this behaviour in my real setup. don't assume that ligatures are always real ligatures ... in that font it's just kerning .. this kind of works okay: \replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen] I am confused as the specimen of EB Garamond mentions (real) ligatu

Re: [NTG-context] Ligatures in EB Garamond

2016-01-18 Thread Jan U. Hasecke
t;>> When I don't specify a font, it works. --> example.tex >>>>> >>>>> When I choose EB Garamond, it does not work. -- example-Garamond.tex >>>>> >>>>> I confirmed this behaviour in my real setup. >>>> >>>> don't assu

Re: [NTG-context] Ligatures in EB Garamond

2016-01-18 Thread Georg Duffner
>> >>>> I confirmed this behaviour in my real setup. >>> >>> don't assume that ligatures are always real ligatures ... in that font >>> it's just kerning .. this kind of works okay: >>> >>> \replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen] &

Re: [NTG-context] \replaceword and \setreplacements with xml files

2016-01-17 Thread Jan U. Hasecke
ligatures ... in that font > it's just kerning .. this kind of works okay: > > \replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen] Thanks a lot. This was new to me. juh ___ If your question is of inter

Re: [NTG-context] \replaceword and \setreplacements with xml files

2016-01-17 Thread Hans Hagen
kay: \replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.

Re: [NTG-context] \replaceword and \setreplacements with xml files

2016-01-16 Thread Schmitz Thomas A.
> On 16 Jan 2016, at 12:24, Jan U. Hasecke wrote: > > Both solutions work fine if I use them in a simple context file, but I > can't use neither solution in my xml processing. > > I use a customized version of the from-pandoc-to-context solution of Pablo. > > When

[NTG-context] \replaceword and \setreplacements with xml files

2016-01-16 Thread Jan U. Hasecke
Dear list, some time ago I ask for a way to selectively suppress ligatures. Hans told me to use the replacement feature. - http://www.ntg.nl/pipermail/ntg-context/2015/083044.html - http://www.ntg.nl/pipermail/ntg-context/2015/083034.html In another thread a solution with the translate module

Re: [NTG-context] \replaceword and \setreplacements with xml files

2016-01-16 Thread Jan U. Hasecke
egistersetup{xml:initialize} \startxmlsetups xml:p \xmlflush{#1} \stopxmlsetups \setupbodyfont [mainface, 16pt] \replaceword[sellig][auflösen][au{fl}ösen] \setreplacements[sellig] \starttext \xmlprocessbuffer{main}{demo}{} \stoptext \startbuffer[demo] auflösen, fließend

Re: [NTG-context] Selectively supressing ligatures

2015-08-11 Thread Hans Hagen
. The best place to incorporate such a feature is in the hyphenator but I have no time now to do that. So, instead I added a few lines to an existing (probably unknown) mechanism: \replaceword[more][shelfful] [shel{ff}ul] \replaceword[more][shifffahrt][shi{ff}fahrt] \starttext shel\noligature{ff

Re: [NTG-context] Selectively supressing ligatures

2015-08-11 Thread Jan U. Hasecke
) mechanism: \replaceword[more][shelfful] [shel{ff}ul] \replaceword[more][shifffahrt][shi{ff}fahrt] \starttext shel\noligature{ff}ul \setreplacements[more] shelfful \stoptext The downside of the 10 line extension is that it's not the most efficient implementation but probably still fast

Re: [NTG-context] Selectively supressing ligatures

2015-08-11 Thread Hans Hagen
without and 18.95 sec with suppression enabled (0.14 s loop overhead), so some 5% extra runtime. \replaceword[more][slffl][sl{ff}l] \replaceword[more][slfful][sl{ff}ul] \replaceword[more][shlfful][shl{ff}ul] \replaceword[more][shelfful][shel{ff}ul] \startbuffer \testfeatureonce{100